package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Crawlerfile;
import org.springframework.dao.DataAccessException;

import java.util.Calendar;
import java.util.Set;

public interface CrawlerfileDAO extends JpaDao<Crawlerfile> {

	public Crawlerfile findCrawlerfileById(Integer id) throws DataAccessException;

	public Crawlerfile findCrawlerfileById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByName(String name) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByNameContaining(String name_1) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByCrawltime(Calendar crawltime) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByCrawltime(Calendar crawltime, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByExist(Boolean exist) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByExist(Boolean exist, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByTitlerownum(Integer titlerownum) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByTitlerownum(Integer titlerownum, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByHash(Integer hash) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByHash(Integer hash, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByDescription(String description) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfileByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Crawlerfile findCrawlerfileByPrimaryKey(Integer id) throws DataAccessException;

	public Crawlerfile findCrawlerfileByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfilesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Crawlerfile> findAllCrawlerfiles() throws DataAccessException;

	public Set<Crawlerfile> findAllCrawlerfiles(int startResult, int maxRows) throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfilesByUrl(Integer urlId, int start, int max);

	public Set<Crawlerfile> findCrawlerfilesByFiletype(Integer filetypeId, int start, int max);

	public Set<Crawlerfile> findCrawlerfilesByCrawlerfilestatus(Integer crawlerfilestatusId, int start, int max);

	public Set<Crawlerfile> findCrawlerfilesByCrawlerfilestandard(Integer crawlerfilestandardId, int start, int max);

	public Set<Crawlerfile> findCrawlerfileByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Crawlerfile> findCrawlerfilesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Crawlerfile findCrawlerfileByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Crawlerfile findCrawlerfileByPhysicalPrimaryKey(String name, int startResult, int maxRows)
			throws DataAccessException;
}
